package com.pet.comment.feign;

import com.pet.model.common.dtos.ResponseResult;
import com.pet.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "pet-user",path = "/api/v1/apUser",contextId = "apUser")
public interface ApUserFeign {
    /**
     * 根据id查询
     */
    @GetMapping("/one/{id}")
    public ResponseResult<ApUser> findOne(@PathVariable("id")Integer id);
}
